package br.com.simulador.vo;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.Lob;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

import org.apache.commons.beanutils.BeanUtils;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.AutoCreate;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;

import br.com.simulador.model.ItemQuestao;
import br.com.simulador.model.Simulado;
import br.com.simulador.model.StatusSimulado;
import br.com.simulador.model.Tag;
@Name("itemQuestaoVO")
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)

public class ItemQuestaoVO implements Serializable {
	@XmlTransient
	private ItemQuestao item;
	
	private Long id;
	
	private String descricao;
	
	private Boolean correta=false;
	public ItemQuestaoVO() {
		super();
		// TODO Auto-generated constructor stub
	}
	public ItemQuestaoVO(ItemQuestao item) {
		this.item = item;
		
		try {
			BeanUtils.copyProperties(this, this.item);
		} catch (IllegalAccessException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getDescricao() {
		return descricao;
	}
	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}
	public Boolean getCorreta() {
		return correta;
	}
	public void setCorreta(Boolean correta) {
		this.correta = correta;
	}	
	
}
